package persistence;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import java.sql.SQLException;
import java.util.List;
import model.Buah;

public class MainDAOImpl extends SqlMapClientDaoSupport implements MainDAO{
	@SuppressWarnings("unchecked")
	@Override
	public List<Buah> selectDaftarBuah() {
		try {
			return getSqlMapClient().queryForList("MAIN_SQL_MAPS.showDaftarBuah", null);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

}

